package fr.alma.trajectory.commons;

import java.util.List;
import java.util.ArrayList;


public class Triangle extends ASpaceObject implements SpaceObject {
	
	public Triangle(SpacePoint pointA, SpacePoint pointB, SpacePoint pointC) {
		super(pointA, pointB, pointC);
	}
	
	@Override
	public boolean isTriangle(){
		return true;
	}
	
	@Override
	public List<SpacePoint> getSpacePoints(){
		List<SpacePoint> points = new ArrayList<SpacePoint>();
		points.add(getPoint1());
		points.add(getPoint2());
		points.add(getPoint3());
		return points;
	}
	
}
